<?php
class Pagemanager_Model_Deletepage implements Pagemanager_Model_Mainable{
    
    private $pagemanager_data_deletepagedata;
    private $excepted_result = 1;
    private $delete_page_data_result;
    
    public function __construct() {
        $this->pagemanager_data_deletepagedata = new Pagemanager_Data_Deletepagedata;
    }
    
    public function main(array $variables = null) {
        $this->delete_page_data_result = $this->pagemanager_data_deletepagedata->main($variables);
        if(
                $this->excepted_result == $this->delete_page_data_result
                ){
            header("Location: ".SITE_ROOT."zarzadzaj-stronami.html");
        }
        else {
            header("Location: ".SITE_ROOT."zarzadzaj-stronami.html");
        }
    }

}
